//
//  BookStackTableViewCell.m
//  ProjectDemo
//
//  Created by IOS3 on 2018/11/1.
//  Copyright © 2018 IOS3. All rights reserved.
//

#import "BookStackTableViewCell.h"


@interface BookStackTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *moreButton;
@property (weak, nonatomic) IBOutlet UIButton *bookButton_1;
@property (weak, nonatomic) IBOutlet UIButton *bookButton_2;
@property (weak, nonatomic) IBOutlet UIButton *bookButton_3;

@end

@implementation BookStackTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];

    
    [self.bookButton_1 setTitle:@"book one" forState:UIControlStateNormal];
    [self.bookButton_1 setImage:[UIImage imageWithColor:[UIColor randomColor] size:CGSizeMake(60, 100)] forState:UIControlStateNormal];
    
    [self.bookButton_2 setTitle:@"book two" forState:UIControlStateNormal];
    [self.bookButton_2 setImage:[UIImage imageWithColor:[UIColor randomColor] size:CGSizeMake(60, 100)] forState:UIControlStateNormal];
    
    [self.bookButton_3 setTitle:@"book three" forState:UIControlStateNormal];
    [self.bookButton_3 setImage:[UIImage imageWithColor:[UIColor randomColor] size:CGSizeMake(60, 100)] forState:UIControlStateNormal];
    
    
}


- (void)layoutIfNeeded {
    [super layoutIfNeeded];
    
    [self.bookButton_1 setButtonImageTitleStyle:ButtonImageTitleStyleTop padding:7];
    [self.bookButton_2 setButtonImageTitleStyle:ButtonImageTitleStyleTop padding:7];
    [self.bookButton_3 setButtonImageTitleStyle:ButtonImageTitleStyleTop padding:7];
}


@end
